<?php
/**
 * Pipahr
 *
 * @author Randy Zhao
 * @copyright 2014 pipahr.com
 */

/* controller based router */
$this->create('mobile_init', 'init')->get()->action('PMobileController', 'init');
$this->create('mobile_login', 'login')->post()->action('PMobileController', 'login');
$this->create('mobile_joblist', 'getjoblist')->get()->action('PMobileController', 'getjoblist');
$this->create('mobile_interviewlist', 'getinterviewlist')->get()->action('PMobileController', 'getinterviewlist');
$this->create('mobile_testlist', 'gettestlist')->get()->action('PMobileController', 'gettestlist');
$this->create('mobile_persontestlist', 'getpersontestlist')->get()->action('PMobileController', 'getpersontestlist');
$this->create('mobile_persontests', 'getallpersontests')->get()->action('PMobileController', 'getallpersontests');
$this->create('mobile_persontestresult', 'getpersontestresult')->get()->action('PMobileController', 'getpersontestresult');
$this->create('mobile_invitationinfo', 'getinvitationinfo')->get()->action('PMobileController', 'getinvitationinfo');
$this->create('mobile_companyinfo', 'getcompanyinfo')->get()->action('PMobileController', 'getcompanyinfo');

$this->create('mobile_postinterview', 'postinterview')->post()->action('PMobileController', 'postinterview');
$this->create('mobile_posttest', 'posttest')->post()->action('PMobileController', 'posttest');
$this->create('mobile_postpersontest', 'postpersontest')->post()->action('PMobileController', 'postpersontest');

$this->create('mobile_verifyinvitation', 'verifyinvitation')->post()->action('PMobileController', 'verifyinvitation');
$this->create('mobile_setpassword', 'setpassword')->post()->action('PMobileController', 'setpassword');
$this->create('mobile_setprimarymobile', 'setprimarymobile')->post()->action('PMobileController', 'setprimarymobile');
$this->create('mobile_feedback', 'feedback')->post()->action('PMobileController', 'feedback');

$this->create('mobile_update', 'getupdate')->get()->action('PMobileController', 'getupdate');

// This is just for test use
$this->create('mobile_token', 'token')->get()->action('PMobileController', 'token');